package kr.hkit.powerjava.chther08;

class 아아{
/*	public void aa() {
		System.out.println("aa - start");
//		bb();
		System.out.println("aa - end");
	}*/
	/*
	public void aa(int a){
		System.out.println("aa(int a)");
		
	}
	public void aa(double b){
		System.out.println("aa(double b)");
	}*/
//		public void aa(int ...a){
//			System.out.println("인수의개수:"+a.length);
//			for(int c: a){
//				System.out.print(c);
//			}
//			System.out.println();
//		}
		
		public void bb(String str,int ...f) {
			System.out.println(str);
			System.out.println("인수의개수:"+f.length);
			for(int c:f){
				System.out.print(f);
			}
		}
	/*public void bb() {
		System.out.println("bb - start");
		cc();
		System.out.println("bb - end");
	}

	public void cc() {
		System.out.println("cc - start");
		System.out.println("cc - end");
	}*/

		@Override
		public String toString() {
			return "아아 [getClass()=" + getClass() + ", hashCode()="
					+ hashCode() + ", toString()=" + super.toString() + "]";
		}
}

public class MethodCallTest {
	public static void main(String[] args) {
		아아 d= new 아아();
//		d.aa();
//		d.aa(3);
//		d.aa(1,2,3);
//		d.aa(1,2,3,4);
//		d.aa(1,2,3,4,5);
		
		d.bb("aa", 1,2,3,4);
	}
		
}
